import request from '@/utils/request'

export const getProvinceList = () => {
  return request({
    url: '/address/provincelist',
    method: 'get',
  })
}
export const getCityList = id => {
  return request({
    url: '/address/citylist',
    method: 'get',
    params: { provinceId: id },
  })
}
export const getAreaList = id => {
  return request({
    url: '/address/arealist',
    method: 'get',
    params: { cityId: id },
  })
}
export const getAddressInfo = (provinceId, cityId, areaId) => {
  return request({
    url: '/address/addressinfo',
    method: 'get',
    params: { provinceId: provinceId, cityId: cityId, areaId: areaId },
  })
}
